<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>事件修饰符</title>
    <script src="./js/vue.js"></script>
</head>
<body>
<div id="app">
<p @mouseover="mm">
    x:{{x}} y:{{y}} <span @mouseover.stop>鼠标移动到这停止鼠标的移动事件</span>
</p>
</div>
<script>
    new Vue({
        el: "#app",
        data: {
            x: 0,
            y: 0
        },
        methods:{
            mm:function (event){
                this.x = event.clientX,
                this.y = event.clientY
            }
        }
    });
</script>
</body>
</html>